package cn.wokoba.dao.elasticsearch.po;


import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@Document(indexName = "nuggets_mark.user_raffle_order")
public class UserRaffleOrder {

    @Field(name = "_user_id", type = FieldType.Text)
    private String userId;

    @Field(name = "_activity_id", type = FieldType.Text)
    private Long activityId;

    @Field(name = "_activity_name", type = FieldType.Text)
    private String activityName;

    @Id
    private String orderId;

    @Field(name = "_order_state", type = FieldType.Text)
    private String orderState;


    @Field(name = "_strategy_id", type = FieldType.Text)
    private Long strategyId;


    @Field(name = "_order_time", type = FieldType.Text)
    private String orderTime;

    @Field(name = "_create_time", type = FieldType.Text)
    private String createTime;

    @Field(name = "_update_time", type = FieldType.Text)
    private String updateTime;
}
